package com.kingyun.gpsinspection.purificationservice.facade.service.som;


import com.kingyun.gpsinspection.purificationservice.facade.model.som.ElectronTemplateValue;

import java.util.Date;
import java.util.Map;

/**
 * Created by 卢曼成 on 2017/6/5.
 */
public interface SomElectronTemplateValueService {
    /**
     * 分页查询
     *
     * @param param
     * @return
     */
    Map<String, Object> findPageList(ElectronTemplateValue param) throws Exception;

    /**
     * 根据ID查询
     *
     * @param etvId
     * @return
     */
    Map<String, Object> getByParam(String etvId) throws Exception;

    /**
     * 保存
     *
     * @param str
     * @param userId
     * @return
     */
    Map<String, Object> save(String str, String userId) throws Exception;

    /**
     * 修改
     *
     * @param param
     * @return
     */
    Map<String, Object> update(ElectronTemplateValue param) throws Exception;

    /**
     * 逻辑删除
     *
     * @param param
     * @return
     */
    Map<String, Object> deleteKey(ElectronTemplateValue param) throws Exception;

    /**
     * 查询当前日期当前小时是否执行巡检
     *
     * @param etId
     * @return
     */
    Map<String, Object> isExecute(String etId);

    /**
     * 组装数据
     *
     * @param etId
     * @return
     */
    String dataAssembling(String etId, boolean is, Date date) throws Exception;

}
